<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            margin: 100px auto;
            position: relative;
            width: 600px;
            height: 375px;
            background-color: pink;
            overflow: hidden;
        }
        .box .mask{
            position: absolute;
            z-index: 1;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0);
            transition: all 0.3s;
        }
        .box:hover .mask{
            background-color: rgba(0,0,0,0.2);
        }
        .box img:nth-child(1){
            position: absolute;
            left: 50%;
            top: 50%;
            z-index: 2;
            transform: translate(-50%,-50%) scale(0.6);
            transition: all 0.5s;
            opacity: 0;
        }
        .box:hover img:nth-child(1){
            transform: translate(-50%,-50%) scale(1);
            opacity: 1;
        }
        .box img:nth-child(2){
            transition: all 0.5s;
        }
        .box:hover img:nth-child(2){
            transform: scale(1.1);
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="./img/cover_play.png" alt="">
        <img src="./img/timg.jpg" alt="">
        <div class="mask"></div>    
    </div>
</body>
</html>